<%-- 
    Document   : newissue
    Created on : 2009-03-29, 10:09:18
    Author     : Tomek
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Helpdesk</title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="default.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="resources/jQuery_1.3.2/jquery-1.3.2.min.js"></script>
        <script type="text/javascript">
            var formData = new Object();
            function validate()
            {
                $("#accountCreation").find("input:text, input:password, textarea, select").each(iterate);
                $("#accountCreation").empty().append("Wysyłanie danych...");
                $.post("/Helpdesk/IssueCreator", formData, showAccountCreationResult);
                return false;
            }
            function iterate(index, item)
            {
                var name = jQuery(item).attr("name");
                var value = jQuery(item).val();
                formData[name] = value;
            }
            function showAccountCreationResult(data)
            {
                $("#accountCreation").empty().append(data);
            }
        </script>
    </head>
    <body>
       <jsp:include page="/WEB-INF/HeaderControl.jsp"/>
        <!-- start page -->
        <div id="page">
            <!-- start content -->
            <div id="content">
                <!-- start latest-post -->
                <div class="post">
                    <h1 class="title">Nowe zgłoszenie</h1>
                    <p class="meta"><small>Posted by Admin on August 3, 2007<br />
                    Filed under <a href="#">Uncategorized</a> | <a href="#">Comments (12)</a></small></p>
                    <!-- zakładanie konta -->
                    <div class="entry">
                        <div id="accountCreation">
                            <form name="createAccount" onsubmit="return validate()" action="/Helpdesk/IssueCreator" method="POST">
                                <table border="0" width="100%" cellspacing="3">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <label for="inputTitle">Tytuł </label>
                                                <br/>
                                                <input style="width:100%" id="inputTitle" type="text" name="title"  />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label for="selectCategory">Kategoria </label>
                                                <br/>
                                                <jsp:include page="/WEB-INF/CategoryComboControl.jsp"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label for="inputText">Treść </label>
                                                <br/>
                                                <textarea style="width:100%" id="inputText" rows="10" name="text"></textarea>
                                            </td>                                            
                                        </tr>
                                        <tr>
                                            <td><input type="submit" value="Zapisz" /></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                        <p>&nbsp;</p>
                    </div>
                </div>
                <!-- end latest-post -->
            </div>
            <!-- end content -->
            <!-- start recent-posts -->
            <div id="recent-posts">
                <jsp:include page="/WEB-INF/LoginControl.jsp"/>
            </div>
            <!-- end recent-posts -->
            <div style="clear: both;">&nbsp;</div>
        </div>
        <!-- end page -->
        <jsp:include page="/WEB-INF/FooterControl.jsp"/>
    </body>
</html>
